#pragma once

#define CWORD_MEMO_WIDTH           550
#define CWORD_MEMO_HEIGHT          86

#define CWORD_MEMO_RECT_LEFT        0
#define CWORD_MEMO_RECT_TOP         87
#define CWORD_MEMO_RECT_RIGHT       (CWORD_MEMO_RECT_LEFT + CWORD_MEMO_WIDTH)
#define CWORD_MEMO_RECT_BOTTOM      (CWORD_MEMO_RECT_TOP + CWORD_MEMO_HEIGHT)

#define CWORD_DESC_WIDTH           550
#define CWORD_DESC_HEIGHT          86

#define CWORD_DESC_RECT_LEFT        0
#define CWORD_DESC_RECT_TOP         0
#define CWORD_DESC_RECT_RIGHT       (CWORD_DESC_RECT_LEFT + CWORD_DESC_WIDTH)
#define CWORD_DESC_RECT_BOTTOM      (CWORD_DESC_RECT_TOP + CWORD_DESC_HEIGHT)

// CtlWord
namespace bdc{
	
	namespace ctl{

		class CtlWord : public CWnd
		{
			DECLARE_DYNAMIC(CtlWord)

		private:
			CStatic ctlMemo;
			CStatic ctlDesc;

		private:
			Gdiplus::Image* pImgBg;

		private:
			RecordInfo* pRecordInfo;

		public:
			CtlWord();
			virtual ~CtlWord();

		protected:
			DECLARE_MESSAGE_MAP()

		private:
			afx_msg void OnPaint();
			afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

		public:
			void setRecord(RecordInfo* info);
			void showMemory();
		};
	}
}


